#! /bin/sh
export PATH || exec /bin/sh $0 $argv
# Get the path to this exec
xinfoloc=`dirname $0`

case "$xinfoloc" in 
.*)
   xinfoloc=`pwd`;;
/*)
   ;;
*)
   loc=`pwd`
   xinfoloc=$loc/$xinfoloc;;
esac

platform=`uname -s`
	
# run xinfo executable depending on different platform
if [ "$platform" = "SunOS" ]
then
	$xinfoloc/bin/sol/xinfoenv
elif [ "$platform" = "Linux" ]
then
    procType=`uname -p`;	# Get the processor type
    if [ "$procType" = "x86_64" ]
    then
	# 64 bit
	$xinfoloc/bin/lin64/xinfoenv 
    else
	$xinfoloc/bin/lin/xinfoenv
    fi
else
	echo "Un-supported platform: $platform"
fi

